package pl.droidsonroids.gif;

import ohos.agp.graphics.Surface;
import ohos.agp.graphics.SurfaceOps;
import ohos.agp.render.Canvas;

/**
 * PlaceholderDrawingSurfaceTextureListener
 */
class PlaceholderDrawingSurfaceTextureListener implements SurfaceOps.Callback {
        @Override
        public void surfaceCreated(SurfaceOps surfaceOps) {
                final Surface surface = surfaceOps.getSurface();
                final Canvas canvas = surfaceOps.lockCanvas();
                surfaceOps.unlockCanvasAndPost(canvas);
        }

        @Override
        public void surfaceChanged(SurfaceOps surfaceOps, int i1, int i2, int i3) {
        }

        @Override
        public void surfaceDestroyed(SurfaceOps surfaceOps) {
        }
}
